<template>
  <div class="user">
    <user-header />
    <user-section />
    <user-form v-if="$store.state.hideLogin" />
    <div class="van-overlay" v-if="$store.state.hideLogin" @click="showLogin"></div>
  </div>
</template>

<script>
import UserHeader from "./header/UserHeader";
import UserSection from "./section/UserSection";
import UserForm from "./form/UserForm";
export default {
  data() {
    return {};
  },
  components: {
    UserHeader,
    UserSection,
    UserForm
  },
  methods: {
    showLogin() {
      this.$store.commit("changehideLogin", false);
    }
  }
};
</script>

<style lang="less" scoped>
.user {
  padding-bottom: 50px;
}
.van-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}
</style>